getDeviceCaps

abstract fun getDeviceCaps(): Int

Gets a bitmask representing the capabilities of this device.

Each bit in the returned integer corresponds to a specific feature or capability that the device supports or has enabled. For example:

  • Bit 0 (0x01): Supports HD Video
  • Bit 1 (0x02): Has Touchscreen Input
  • Bit 2 (0x04): Supports Advanced Scripting
To check for a specific capability, use bitwise AND: (getDeviceCaps() & CAPABILITY_FLAG) == CAPABILITY_FLAG

The specific meaning of each bit should be defined in a constants file or supplementary documentation.

Return

An integer bitmask of device capabilities.

See also

<your_project_docs_or_constants_for_DeviceCaps> // Link to where CAP_ flags are defined